<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title>Template of footer</title>
    </h:head>
    <h:body>
        <ui:composition>
            <div class="container_12">
                <h1 class="grid_4"><a href="#{request.contextPath}/">#{webSiteTitle}</a></h1>
                <nav class="grid_8">
                    <ul class="right">
                        <li class="selected">
                            <a href="#">Home</a>
                            <c:if test="#{!request.secure}">
                                <ul>
                                    <li>
                                        <a href="https://xfiles.in:49626/XFiles-war/">Secure Access</a>
                                    </li>
                                </ul>
                            </c:if>
                        </li>
                        <li>
                            <a href="#{request.contextPath}/faces/about.xhtml">About</a>
                            <ul>
                                <li><a href="#{request.contextPath}/faces/about.xhtml">About XFiles</a></li>
                                <li><a href="#{request.contextPath}/faces/contacts.xhtml">Contact</a></li>
                                <li><a href="#{request.contextPath}/faces/faq.xhtml">FAQ</a></li>
                                <li><a href="#{request.contextPath}/faces/tutorial.xhtml">Tutorial</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="#{request.contextPath}/faces/services.xhtml">Services</a>
                            <ul>
                                <li><a href="#{request.contextPath}/faces/services.xhtml">Services</a></li>
                                <li><a href="#{request.contextPath}/faces/contacts.xhtml">Terms of Use</a></li>
                                <li><a href="#{request.contextPath}/faces/testimonials.xhtml">Testimonials</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="http://blog.xfiles.in/" target="_blank">Blog</a>
                        </li>
                        <li>
                            <a href="#{request.contextPath}/faces/pricing.xhtml">Pricing</a>		
                        </li>
                        <li>
                            <a href="#{request.contextPath}/faces/cabinet/home.xhtml">Cabinet</a>		
                            <c:if test="#{loginBean.loggedIn}">
                                <ul>
                                    <li><a href="#{request.contextPath}/faces/cabinet/home.xhtml#;tab">Cabinet Home</a></li>
                                    <li><a href="#{request.contextPath}/faces/cabinet/home.xhtml#;tab;files">Files</a></li>
                                    <li><a href="#{request.contextPath}/faces/cabinet/home.xhtml#;tab;groups">Groups</a></li>
                                    <li><a href="#{request.contextPath}/faces/cabinet/home.xhtml#;tab;messages">Messages</a></li>
                                    <li><a href="#{request.contextPath}/faces/cabinet/home.xhtml#;tab;history">History</a></li>
                                    <li><h:form><h:commandLink action="#{loginBean.logOut}">Sign Out</h:commandLink></h:form></li>
                                </ul>
                            </c:if>
                            <c:if test="#{!loginBean.loggedIn}">
                                <ul>
                                    <li><a href="#{request.contextPath}/faces/login.xhtml">Sign In</a></li>
                                    <li><a href="#{request.contextPath}/faces/registration.xhtml">Register</a></li>
                                    <li><a href="#{request.contextPath}/faces/recover.xhtml">Recover Password</a></li>
                                </ul>
                            </c:if>
                        </li>
                    </ul>
                </nav>
            </div>
        </ui:composition>
    </h:body>
</html>